home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 2 / CU Amiga Magazine's Super CD-ROM 02 (1996)(EMAP Images)(GB)[!][issue 1996-04].iso / magazine / amiga_e / amigae.june.archive / 000058_crash!sirius.UVic.CA!jblake_Fri, 11 Jun 93 21:48:39 PST.msg < prev    next >
Text File  |  1993-08-31  |  2KB  |  61 lines

  1. Received: by bkhouse.cts.com (V1.16/Amiga)
  2.     id AA00000; Fri, 11 Jun 93 21:48:39 PST
  3. Received: from sol.UVic.CA by crash.cts.com with smtp
  4.     (Smail3.1.28.1 #15) id m0o4N2a-0000gTC; Fri, 11 Jun 93 21:18 PDT
  5. Received: from sirius.UVic.CA by sol.UVic.CA (4.1/SMI-4.0.3-UVic-2.43TMX)
  6.     id AA11371; Fri, 11 Jun 93 21:18:01 PDT
  7. Received: from stokes.UVic.CA by sirius.UVic.CA (4.1/SMI-4.1-Engr.UVic.CA-E)
  8.     id AA15619; Fri, 11 Jun 93 21:17:59 PDT
  9. Date: Fri, 11 Jun 93 21:17:59 PDT
  10. Message-Id: <9306120417.AA15619@sirius.UVic.CA>
  11. From: jblake@sirius.UVic.CA (James  Blake)
  12. To: amigae@bkhouse.cts.com
  13. Subject: drawinfo structure
  14.  
  15.  
  16. Thanks to Son Le I now understand the problem I was having before (E only
  17. handles one reference at a time.
  18.  
  19. However, I am still having a problems getting penvalues for the SHINEPEN
  20. and SHADOWPEN etc..  of the default Public Screen.
  21.  
  22. What I have been doing can be summarized as follows  (Error checking
  23. left out for clarity.)
  24.  
  25. scr:=LockPubScreen(NIL)
  26. visual:=GetVisualInfoA(scr,NIL)
  27. scrdrawinfo:=GetScreenDrawInfo(NIL)
  28.  
  29. pens:=scrdrawinfo.pens        
  30.                   
  31. shine:=pens[SHINEPEN]         
  32. shadow:=pens[SHADOWPEN]       
  33. hilite:=pens[HIGHLIGHTTEXTPEN]
  34.  
  35. The values I am getting for shine etc are definetly not the right numbers
  36.  
  37. I also checked some of the other values  in the object drawinfo
  38. and the values for drawinfo.depth, and drawinfo,numpens were not right.
  39.  
  40. I noticed that the text file I have describing the drawinfo object
  41. goes like this:
  42.  
  43. (---) OBJECT drawinfo                    
  44. (  0)   version:INT                      
  45. (  2)   numpens:INT                      
  46. (  4)   pens:LONG                        
  47. (  8)   font:LONG                        
  48. ( 12)   depth:INT                        
  49. ( 14)   resolutionx:INT                  
  50. ( 16)   resolutiony:INT                  
  51. ( 18)   flags:LONG                       
  52. ( 22)   longreserved:substructure        
  53. (---) ENDOBJECT     /* SIZEOF=NONE !!! */
  54.                   ^^^^^^^^^------I have never seen this
  55.                          noted for any other
  56.                          object.  
  57. I am wondering if this means there is something wrong with the drawinfo
  58. object or if I am missing something when I am trying to get the penvalues.
  59.  
  60. Thank you
  61. ..james (jblake@sirius.uvic.ca)